<!DOCTYPE html>
<html>
<!--Made By kailuosoft.com, TEL 171 9992 9517 -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	<link href="__PUBLIC__/css/page.css" rel="stylesheet">
    <link href="__PUBLIC__/css/new.css" rel="stylesheet">
	<script src="__PUBLIC__/js/jquery.min63b9.js?v=2.1.4"></script>
    <script src="__PUBLIC__/js/plugins/layer/layer.min.js"></script>

    <!-- 百度编辑器 -->
    <link href="__PUBLIC__/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="__PUBLIC__/umeditor/third-party/jquery.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor/umeditor.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/umeditor/lang/zh-cn/zh-cn.js"></script>

	<!-- 百度编辑器 -->
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                           <h5>新建产品</h5>
                    </div>
                    <div class="ibox-content">
                    	
                        <form class="form-horizontal m-t" id="commentForm" action="{:U('add')}" method="post" enctype="multipart/form-data">
							
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品所属类目：</label>
                                <div class="col-sm-2">
                                    <select name="cateid" style="width: 180px;" class="form-control">
                                        
                                        <option value="">请选择</option>
                                        <!-- 循环 -->
                                        <foreach name='cat' item='k'>
                                                 <option value="{$k.id}"><?php echo str_repeat('---',$k['level']);?>{$k.catename}</option>
                                        </foreach>
                                    </select>
                                    
                                </div>
                                <div class="col-sm-2" style="padding-left: 50px;">
                                    <a href="" onclick="javascript:openwin()" class="btn btn-primary">添加类目</a>
                                    
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品中文名称：</label>
                                <div class="col-sm-2">
                                    <input  name="name" type="text" class="form-control" value='' style="width: 550px;">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品英文名称：</label>
                                <div class="col-sm-2">
                                    <input  name="ename" type="text" class="form-control" value='' style="width: 550px;">
                                </div>
                            </div>

                            <!-- 产品编号 -->
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品编号：</label>
                                <div class="col-sm-2">
                                    <input  name="product_sn" type="text" class="form-control" value='' style="width: 150px;">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">产品主图片：</label>
                                <div class="col-sm-2">
                                    <input name="product_img" type="file">
                                </div>
                            </div>

                             <div class="form-group">
                                <label class="col-sm-3 control-label">产品中文简介：</label>
                                <div class="col-sm-2">
                                    <textarea name="brief" style="width: 300px;height: 80px;" placeholder="简单介绍的， 不超过30字。"></textarea>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品英文简介：</label>
                                <div class="col-sm-2">
                                    <textarea name="enbrief" style="width: 300px;height: 80px;" placeholder="简单介绍的， 不超过30字。"></textarea>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品中文详情：</label>
                                <div class="col-sm-2">
                                   <!-- <textarea id="myEditor" name="details" placeholder="详细介绍"></textarea> -->
                                   <!--style给定宽度可以影响编辑器的最终宽度-->
                                   <script type="text/plain" id="myEditor" name="details" style="width:600px;height:300px;"></script>

                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品英文详情：</label>
                                <div class="col-sm-2">
<!--                                    <textarea name="endetails" placeholder="详细介绍"></textarea> -->
                                   <script type="text/plain" id="myEditor2" name="endetails" style="width:600px;height:300px;"></script>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-3 control-label">是否发布：</label>
                                <div class="col-sm-2">
                                   <input type="radio" name="is_show" value="1" checked="checked">发布
                                   <input type="radio" name="is_show" value="2">下架
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">是否在首页展示：</label>
                                <div class="col-sm-2">
                                   <input type="radio" name="is_recomemd" value="1" >展示
                                   <input type="radio" name="is_recomemd" value="2" checked="checked">不展示
                                </div>
                            </div>
      
                            
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                   <input type="submit" value='提交'  class="btn btn-primary"  id='submit'/>
                                   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type='reset' class="btn btn-primary" value="清空">
                                  
                                </div>
                            </div>

                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<script LANGUAGE="JavaScript">
//新建端口， 添加类目

　　function openwin(){
    　　window.open ("{:U('add_cate')}","newwindow","height=540,width=400,top=100,left=800,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
　　}

 

</script>
   
<script type="text/javascript">
    //实例化编辑器
    var um = UM.getEditor('myEditor');
    var um = UM.getEditor('myEditor2');
    um.addListener('blur',function(){
        $('#focush2').html('编辑器失去焦点了')
    });
    um.addListener('focus',function(){
        $('#focush2').html('')
    });

</script>
</body>

</html>
